package com.algorithm.ocean.other;

/**
 * @author aFei
 * @since 2023/5/24
 */
public class Test01 {

    /**
     * 有三个连续自然数，从小到大依次是9、8、7的倍数，这三个数分别是？
     */
    public static void main(String[] args) {
        int a = 9;
        while (a < 10000) {
            a += 9;
            int b = a + 1;
            int c = a + 2;
            if ((a % 9 == 0) && (b % 8 == 0) && (c % 7 == 0)) {
                System.out.println(a + "，" + b + "，" + c);
            }
        }
    }

}
